2 Scenarios > 2.10 GPRS > 2.10.2 GPRS attach / detach

2.10.2
This section comprises the subsections Description, Used AT Commands, Flow Chart, Hints and Example. To move to these subsections please use the Navigation Frame or the appropri­ate buttons on the toolbar.
2.10.2.1
This chapter describes the AT+CGATT command that enables the ME to attach or to detach from the GPRS service. If the ME is already in the requested state, the command is ignored and OK response is returned.
Any active PDP Contexts will automatically be deactivated, if the ME detaches from the GPRS service.
2.10.2.2
For further details about the commands see [2].
2.10.2.3
Figure 64: GPRS attach
Figure 65: GPRS detach
2.10.2.4
•
If the ME is not able to attach for more than 5 minutes or to detach for more than 1 minute, the command returns „ERROR“ or „+CME ERROR: unknown”, but the ME is still trying to attach/ detach.
2.10.2.5
***************************************
Comment: GPRS attach/ detach
***************************************
***************************************
Comment: Attach to GPRS service
***************************************
 
Subscr 1 Send: AT+CGATT=1
Subscr 1 Receive: AT+CGATT=1
Subscr 1 Receive:
Subscr 1 Receive: OK
 
***************************************
Comment: Request attached state
***************************************
 
Subscr 1 Send: AT+CGATT?
Subscr 1 Receive: AT+CGATT?
Subscr 1 Receive: +CGATT: 1
Subscr 1 Receive:
Subscr 1 Receive: OK
 
***************************************
Comment: Detach from GPRS service
***************************************
 
Subscr 1 Send: AT+CGATT=0
Subscr 1 Receive: AT+CGATT=0
Subscr 1 Receive:
Subscr 1 Receive: OK